const faultSys = [
    {"label":'车门系统',
    "value": '车门系统'},
    {"label":'牵引系统',
        "value": '牵引系统'},
    {   "label":'制动系统',
        "value": '制动系统'},
    {"label":'走行部',
        "value": '走行部'},
    {"label":'空调系统',
        "value": '空调系统'},
    {"label":'乘客报警',
        "value": '乘客报警'}
]
const trainOptions=[
    {
        "label": "017016",
        "value": "017016"
    },{
        "label": "017017",
        "value": "017017"
    },{
        "label": "017018",
        "value": "017018"
    },{
        "label": "017019",
        "value": "017019"
    },
]
const faultLevelOptions=[
    {
        "label": "严重",
        "value": "严重"
    },{
        "label": "中等",
        "value": "中等"
    },{
        "label": "轻微",
        "value": "轻微"
    }
]

const faultList = [{
    no: '1',
    trainNo: '017018',
    carNo: '1',
    faultSys: '牵引系统',
    faultLevel: '严重',
    faultCode: '9007',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网','电机轴承','电机温度传感器'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-19 9:00',
    endTime: '2021-11-19 11:00',
    duration: '256s'
}, {
    no: '2',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '严重',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}, {
    no: '3',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '中等',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}, {
    no: '4',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '轻微',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}, {
    no: '5',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '严重',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}, {
    no: '6',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '严重',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}, {
    no: '7',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '严重',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}, {
    no: '8',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '严重',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}, {
    no: '9',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '严重',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}, {
    no: '10',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '严重',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}, {
    no: '11',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '严重',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网','电机轴承','电机温度传感器'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}, {
    no: '12',
    trainNo: '017019',
    carNo: '2',
    faultSys: '走行部系统',
    faultLevel: '严重',
    faultCode: '9008',
    faultName: '电机1温度传感器故障',
    toBeCheck: ['电机滤网'],
    repairAdvice: '运行结束后回库检修',
    startTime: '2021-11-20 9:00',
    endTime: '2021-11-20 11:00',
    duration: '20s'
}
]
const chartData={
        chartId:1,
        title: '很多参数',

        legend: {
            data: ['Email', 'Union Ads', 'Video Ads', 'Direct', 'Search Engine']
        },
        xAxisData: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
        series: [
            {
                name: 'Email',
                type: 'line',
                stack: 'Total',
                areaStyle: {},
                emphasis: {
                    focus: 'series'
                },
                data: [120, 132, 101, 134, 90, 230, 210]
            },
            {
                name: 'Union Ads',
                type: 'line',
                stack: 'Total',
                areaStyle: {},
                emphasis: {
                    focus: 'series'
                },
                data: [220, 182, 191, 234, 290, 330, 310]
            },
            {
                name: 'Video Ads',
                type: 'line',
                stack: 'Total',
                areaStyle: {},
                emphasis: {
                    focus: 'series'
                },
                data: [150, 232, 201, 154, 190, 330, 410]
            },
            {
                name: 'Direct',
                type: 'line',
                stack: 'Total',
                areaStyle: {},
                emphasis: {
                    focus: 'series'
                },
                data: [320, 332, 301, 334, 390, 330, 320]
            },
            {
                name: 'Search Engine',
                type: 'line',
                stack: 'Total',
                label: {
                    show: true,
                    position: 'top'
                },
                areaStyle: {},
                emphasis: {
                    focus: 'series'
                },
                data: [820, 932, 901, 934, 1290, 1330, 1320]
            }
        ]

}
export default {

    'get|faultManage/faultAlert': faultList,
    'get|FaultManage/FaultAlert/Sys': faultSys,
    'get|FaultManage/FaultAlert/TrainList':trainOptions,
    'get|FaultManage/FaultAlert/FaultLevel':faultLevelOptions,
    'get|FaultManage/FaultAlert/chartData':chartData,
    // 'get|crux/condition_scene_detail': option =>{
    //     let start = option.url.indexOf('=');
    //     if(option.url.substring(start+1) == "23") {
    //         // console.log("option.body");
    //         return sceneDetail;
    //     }
    //     else return sceneDetail1;
    // }

}